package com.yun.blog.bean.response;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author : simple
 * @title : giteeUserInfo
 * @projectName : dantouBlog-back
 * @description : gitee 返回的用户信息
 * @email : yun_simple@163.com
 * @date : 2023/6/6下午10:03
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GiteeUserInfo extends OauthUserInfo{

    /**gitee 不返回openid，会返回id，在此处用id接受后填充到openid**/
    @JSONField(name = "id")
    private Integer id;

    @JSONField(name = "openid")
    private String openId;

    /**好像是账户名**/
    @JSONField(name = "login")
    private String userUsername;

    @JSONField(name = "name")
    private String userNickName;

    @JSONField(name = "avatar_url")
    private String headImg;

}
